<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:67:"D:\wwwroot\cms\template/index_style/toutiao/cms\index/wap_index.htm";i:1610168911;s:64:"D:\wwwroot\cms\template/index_style/toutiao/index/wap_layout.htm";i:1610158766;s:62:"D:\wwwroot\cms\template\index_style\default\index\footmenu.htm";i:1609332796;s:62:"D:\wwwroot\cms\template\index_style\toutiao\index\weixingz.htm";i:1545783578;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><?php echo $webdb['seo_title']; ?></title>
<meta name="keywords" content='<?php echo $webdb['seo_keyword']; ?>'>
<meta name="description" content='<?php echo $webdb['seo_description']; ?>'>
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" href="/public/static/css/base.css">
<link rel="stylesheet" href="/public/static/css/qb_ui.css">
<link rel="stylesheet" href="/public/static/icon/icon.css">
<link rel="stylesheet" type="text/css" href="/public/static/index/toutiao/wap_head.css">
<script type="text/javascript" src="/public/static/js/core/jquery.min.js"></script>
<script type="text/javascript" src="/public/static/layer/layer.js"></script>
<script type="text/javascript" src="/public/static/index/toutiao/iscroll.js"></script>
</head>
<body>
<!--下面是钩子插件,做风格的时候尽量加上,方便扩展-->
<?php echo hook_listen('layout_body_head',$userdb,$webdb,true); ?>

<div style="width:100%; height:42px">
<div class="body_Hearcont">
	<ul>
	<li>
		<?php if(PAGE_TYPE==='index'&&config('system_dirname')=='cms'): ?>
			<a href="/member.php/member/msg/index.html"><img src="/public/static/index/toutiao/email.png" width="30"></a>
		<?php else: ?>
			<a href="javascript:history.go(-1)"><i class="head_back fa fa-mail-reply"></i></a>
		<?php endif; ?>		
		</li>
		<ol><a href="/"><img src="<?php echo (tempdir($webdb['logo']) ?: '/public/static/index/toutiao/wap_logo.png'); ?>"></a></ol>
		<li>
		<a href="/search/"><img src="/public/static/index/toutiao/so.png" width="30"></a>
		</li>
	</ul>
</div>
</div> 



<div class="BigsortBox">
	<div class="BoxIn">
		<ul>
			<ol><div><span>
<?php $menu_choose=config('system_dirname')?config('system_dirname'):'index'; if(is_array(get_web_menu('wap')) || get_web_menu('wap') instanceof \think\Collection || get_web_menu('wap') instanceof \think\Paginator): $i = 0; $__LIST__ = get_web_menu('wap');if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$rs): $mod = ($i % 2 );++$i;?>
			<a href="<?php echo $rs['url']; ?>" <?php if(($rs['activate']==$menu_choose||$rs['activate']==$menu_choose.'-'.$fid)): ?>class="ck"<?php endif; ?>><?php echo $rs['name']; ?></a>
<?php endforeach; endif; else: echo "" ;endif; ?></span></div></ol>
			<li><span>更多</span></li>
		</ul>
	</div>
</div>
<!--弹出更多导航菜单-->
<div class="MoreSorts">
	<div class="BackBox" onClick="HiddenMoreSorts()"></div>
<?php if(is_array(get_web_menu('wap')) || get_web_menu('wap') instanceof \think\Collection || get_web_menu('wap') instanceof \think\Paginator): $i = 0; $__LIST__ = get_web_menu('wap');if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$rs): $mod = ($i % 2 );++$i;?>
<dl>
			<dt><a href="<?php echo $rs['url']; ?>"><?php echo $rs['name']; ?></a><span></span></dt>
					<dd>
	<?php if(!(empty($rs['sons']) || (($rs['sons'] instanceof \think\Collection || $rs['sons'] instanceof \think\Paginator ) && $rs['sons']->isEmpty()))): if(is_array($rs['sons']) || $rs['sons'] instanceof \think\Collection || $rs['sons'] instanceof \think\Paginator): $i = 0; $__LIST__ = $rs['sons'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vs): $mod = ($i % 2 );++$i;?>
					<a href="<?php echo $vs['url']; ?>"><?php echo $vs['name']; ?></a>
			<?php endforeach; endif; else: echo "" ;endif; endif; ?>
	</dd>
</dl>		
<?php endforeach; endif; else: echo "" ;endif; ?>
	<div class="exit"><span onClick="HiddenMoreSorts()">关闭</span></div>
</div>
<script type="text/javascript">
<!--
$('.MoreSorts dl dt span').click(function(){
	var thisobj=$(this).parent().parent();
	thisobj.siblings('dl').removeClass('ck');
	if(thisobj.hasClass('ck')){
		thisobj.removeClass('ck');
	}else{
		thisobj.addClass('ck');
	}
});
function HiddenMoreSorts(){
	$('.MoreSorts').fadeOut();
}
$('.BigsortBox .BoxIn ul li').click(function(){
	var scrollTopH=parseInt($(window).scrollTop());
	$('.MoreSorts').css({'top':scrollTopH+'px'});
	$('.MoreSorts').fadeIn();
});
//统计总宽度
//var mysortBoxW=0;
//$('.BigsortBox ul ol div a').each(function(){
	//mysortBoxW+=$(this).width();
//});
var mysortBoxW=$('.BigsortBox ul ol div span').width()+30;
$('.BigsortBox ul ol div').width(mysortBoxW);
var myScroll; 
myScroll = new IScroll('.BigsortBox ul ol', { scrollX: true, scrollY: false, mouseWheel: true,preventDefault: false,preventDefaultException: { tagName: /^(INPUT|TEXTAREA|BUTTON|SELECT|LI)$/ } });
//-->
</script>
<link rel="stylesheet" type="text/css" href="/public/static/index/toutiao/wapindex.css">
<div class="MainContainerBox">
	<div class="MainSlideBox">
<!--幻灯片开始-->
<link href="/public/static/libs/owlcarousel/css/owl.carousel.css" rel="stylesheet">
<link href="/public/static/libs/owlcarousel/css/owl.theme.css" rel="stylesheet">
<link href="/public/static/libs/owlcarousel/css/owl.transitions.css" rel="stylesheet">
<script src="/public/static/libs/owlcarousel/js/owl.carousel.js"></script>
<style type="text/css">
#owl-demo { width: 100%; margin-left: auto; margin-right: auto;background:#fff;}
#owl-demo .item{ display: block;}
#owl-demo img { display: block; width: 100%;}
</style>
<script type="text/javascript">
$(function(){
	$('#owl-demo').owlCarousel({
		items: 1,
		autoPlay: 3000,  //播放时间间隔
		autoHeight: false,	//如果不想自适应高度就把true改成false
		transitionStyle: 'fade'
	});
});
</script>
<?php if(defined('LABEL_DEBUG')): ?><!--QB <!--wap_index_rollpic2	images	-->
	<!--
	<div id="owl-demo" class="owl-carousel">			
		<a class="item"><img src="/public/static/images/1.jpg" /></a>
		<a class="item"><img src="/public/static/images/2.jpg" /></a>
		<a class="item"><img src="/public/static/images/3.jpg" /></a>
		<a class="item"><img src="/public/static/images/4.jpg" /></a>
	</div>
	-->
	<!--上面的是演示数据，演示数据可有可无，有的话，必须以注释的形式紧跟在标签后面，下面的就是模板-->
	<div id="owl-demo" class="owl-carousel">			
	<?php if(is_array($listdb) || $listdb instanceof \think\Collection || $listdb instanceof \think\Paginator): $i = 0; $__LIST__ = $listdb;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$rs): $mod = ($i % 2 );++$i;?>
		<a class="item" href="<?php echo $rs['url']; ?>"><img src="<?php echo $rs['picurl']; ?>"></a>
	<?php endforeach; endif; else: echo "" ;endif; ?>
	</div>
 QB--><?php endif; $wap_index_rollpic2 = fun('label@run_label','wap_index_rollpic2',['val'=>'listdb','conf'=>'','list'=>'rs','systype'=>'images','tpl'=>'','ifdata'=>1,'dirname'=>__FILE__,'rows'=>'5','class'=>'','order'=>'','by'=>'','where'=>'','whereor'=>'','sql'=>"",'js'=>'','cache_time'=>'0'  ]); ?>
<!--幻灯片结束-->
	</div>
	<div class="ListConts">
<?php if(defined('LABEL_DEBUG')): ?><!--QB <!--news_list_page_listdata01	cms	--><?php if(is_array($__LIST__) || $__LIST__ instanceof \think\Collection || $__LIST__ instanceof \think\Paginator): $i = 0; $__LIST__ = $__LIST__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$rs): $mod = ($i % 2 );++$i;if($rs['mid']==3&&($mvdb=json_decode($rs['mv_url'],true)[0])): ?>
	<ul class="pic_word">
		<li><div class="title"><a href="<?php echo $rs['url']; ?>"><?php echo $rs['title']; ?></a></div>
		<p style="margin-top:8px;"><?php echo fun('Player@play',$mvdb['url'],'100%',230,$rs['picurl']); ?></p>
	<dl class="moreinfo"><dt>浏览:<span><?php echo $rs['view']; ?></span>次 评论:<span><?php echo fun('comment@total',$rs['id'],'cms'); ?></span>条</dt><dd><?php echo date("Y-m-d",$rs['create_time']); ?></dd></dl>
	</li>
	</ul>
<?php elseif(count($rs['picurls'])>2): ?>
	<div class="ListMorpic">
	<div class="title"><a href="<?php echo $rs['url']; ?>"><?php echo $rs['title']; ?></a></div>
	<a href="<?php echo $rs['url']; ?>"><ul>
	<a href="<?php echo $rs['url']; ?>">
	<?php if(is_array($rs['picurls']) || $rs['picurls'] instanceof \think\Collection || $rs['picurls'] instanceof \think\Paginator): $i = 0; $__LIST__ = $rs['picurls'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$pic): $mod = ($i % 2 );++$i;if(($i<4)): ?>
		<li><span><img src="<?php echo $pic['picurl']; ?>" style="max-width: 100%; max-height: 100%;"></span></li>
	<?php endif; endforeach; endif; else: echo "" ;endif; ?>
	</a>
	</ul>
	</a>
	<dl class="moreinfo"><dt>浏览:<span><?php echo $rs['view']; ?></span>次 评论:<span><?php echo fun('comment@total',$rs['id'],'cms'); ?></span>条</dt><dd><?php echo date("Y-m-d",$rs['create_time']); ?></dd></dl>
	</div>	
<?php elseif($rs['picurl']!=''): ?>
	<ul class="pic_word">
		<ol><a href="<?php echo $rs['url']; ?>"><span><img src="<?php echo $rs['picurl']; ?>"></span></a></ol>
		<li><div class="title"><a href="<?php echo $rs['url']; ?>"><?php echo $rs['title']; ?></a></div>
	<dl class="moreinfo"><dt>浏览:<span><?php echo $rs['view']; ?></span>次 评论:<span><?php echo fun('comment@total',$rs['id'],'cms'); ?></span>条</dt><dd><?php echo date("Y-m-d",$rs['create_time']); ?></dd></dl>
	</li>
	</ul>
<?php else: ?>
	<ul class="pic_word">
		<li><div class="title"><a href="<?php echo $rs['url']; ?>"><?php echo $rs['title']; ?></a></div>
		<p><?php echo get_word($rs['content'],94); ?></p>
	<dl class="moreinfo"><dt>浏览:<span><?php echo $rs['view']; ?></span>次 评论:<span><?php echo fun('comment@total',$rs['id'],'cms'); ?></span>条</dt><dd><?php echo date("Y-m-d",$rs['create_time']); ?></dd></dl>
	</li>
	</ul>
<?php endif; endforeach; endif; else: echo "" ;endif; ?> QB--><?php endif; $news_list_page_listdata01 = fun('label@run_label','news_list_page_listdata01',['val'=>'','conf'=>'','list'=>'rs','systype'=>'cms','tpl'=>'','ifdata'=>1,'dirname'=>__FILE__,'rows'=>'10','class'=>'','order'=>'id','by'=>'desc','where'=>'','whereor'=>'','sql'=>"",'js'=>'','cache_time'=>'0' ,'mid'=>'-1' ]); ?> 

	</div>
<script type="text/javascript">
var Mpage = 1;
//显示更多
function ShowMoreList(){
	Mpage++;
	$.get('<?php fun("label@label_ajax_url","news_list_page_listdata01",__FILE__); ?>'+Mpage,function(res){
		if(res.code==0){
			if(res.data==''){
				layer.msg("已经显示完了！",{time:500});
			}else{
				$('.ListConts').append(res.data);
				scroll_get = true;  //这一行仅仅是匹配滚动显示更多.如果没使用滚动特效,可以删除
			}
		}else{
			layer.msg(res.msg,{time:2500});
		}
	});
}

//滚动显示更多
var scroll_get = true;	//做个标志,不要反反复复的加载
$(document).ready(function () {
	$(window).scroll(function () {
		if (scroll_get==true &&  (400 + $(window).scrollTop())>($(document).height() - $(window).height())) {
			scroll_get = false;
			layer.msg('内容加截中,请稍候',{time:1000});
			ShowMoreList();
		}
	});
});

</script>
</div>
	
<!--下面是钩子插件,做风格的时候尽量加上,方便扩展-->
<?php echo hook_listen('layout_body',$userdb,$webdb,true); ?>

	<!--底部菜单-->
<link rel="stylesheet" href="/public/static/css/footmenu.css?f"> 

<?php if(defined('LABEL_DEBUG')): ?><!--QB <!--footermenu002	myform	--><?php if(is_array($__LIST__) || $__LIST__ instanceof \think\Collection || $__LIST__ instanceof \think\Paginator): $i = 0; $__LIST__ = $__LIST__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$rs): $mod = ($i % 2 );++$i;?>
	<?php echo val($_cfg?:[]); endforeach; endif; else: echo "" ;endif; ?> QB--><?php endif; $footermenu002 = fun('label@run_label','footermenu002',['val'=>'','conf'=>'index_style/default/index/footmenu.php','list'=>'rs','systype'=>'myform','tpl'=>'','ifdata'=>1,'dirname'=>__FILE__,'rows'=>'5','class'=>'','order'=>'','by'=>'','where'=>'','whereor'=>'','sql'=>"",'js'=>'','cache_time'=>'0'  ]); if(defined('LABEL_SET')): ?><ul style="padding:10px;">修改底部菜单相关功能设置</ul><?php endif; if(val('pointbgcolor')!=''): ?><style type="text/css">.footmenu_warp .menu1.centers .bt-name em:first-child{ background:<?php echo val('pointbgcolor'); ?> }</style><?php endif; ?>

<!--重新定义底部菜单链接开始-->
<?php if(defined('LABEL_DEBUG')): ?><!--QB <!--footermenu001	links	-->
	<?php 
	$_menudb=[];
	foreach($listdb AS $key=>$rs){
		$vs=['name'=>$rs['title'],'style'=>$rs['icon'],'url'=>$rs['url'],'fontcolor'=>$rs['font_color'],'bgcolor'=>$rs['bgcolor'],];
		if($rs['tagid']&&is_numeric($rs['tagid'])){
			$rs['tagid'] = 'a'.$rs['tagid'];
		}
		if($rs['tagid']&&$_menudb[$rs['tagid']]){
			$_menudb[$rs['tagid']]['sons'][] = $vs;
		}else{
			$_menudb[$rs['tagid']?:$key] = $vs;
		}
	}
	$_menudb && val(['footlink'=>$_menudb],'footermenu');/*加个footermenu标志,避免跟上面的标签冲突*/
	 ?>
 QB--><?php endif; $footermenu001 = fun('label@run_hy','footermenu001',[  'hy_id'=>intval($info['id']&&defined('IN_QUN_PAGE')&&IN_QUN_PAGE===true?$info['id']:$hy_id),'hy_tags'=>$tags,'val'=>'listdb','conf'=>'','list'=>'rs','systype'=>'links','tpl'=>'','ifdata'=>1,'dirname'=>__FILE__,'rows'=>'5','class'=>'','order'=>'','by'=>'','where'=>'','whereor'=>'','sql'=>"",'js'=>'','cache_time'=>'0'  ]); if(defined('LABEL_SET')): ?><ul style="padding:10px;">重新定义底部菜单链接</ul><?php endif; ?>
<!--重新定义底部菜单链接结束-->

<?php 
$menu_choose=config('system_dirname')?:(ENTRANCE==='member'?'member':'index');
$menudb=val('footlink','footermenu')?:fun('page@foot_menu');
 ?>

<div class="footmenu_warp">
	<?php if(is_array($menudb) || $menudb instanceof \think\Collection || $menudb instanceof \think\Paginator): $k = 0;$__LIST__ = is_array($menudb) ? array_slice($menudb,0,5, true) : $menudb->slice(0,5, true); if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$rs): $mod = ($k % 2 );++$k;?>
    <!-- 一级菜单开始 <?php if($rs['bgcolor']): ?>background-color:<?php echo $rs['bgcolor']; ?>;<?php endif; ?> -->
	<div class="menu1   <?php if((count($menudb)>4&&$k==3)||(count($menudb)==3&&$k==2)): ?> centers <?php endif; if(($rs['activate']==$menu_choose||$rs['activate']==$menu_choose.'-'.$fid)): ?> ck <?php endif; ?>">
        <div class="bt-name">
			<a href="<?php echo !empty($rs['sons'])?'javascript:;':$rs['url']; ?>" style="<?php if($rs['fontcolor']): ?>color:<?php echo $rs['fontcolor']; ?>;<?php endif; ?> ">
				<em class="iconimg <?php echo (isset($rs['style']) && ($rs['style'] !== '')?$rs['style']:'fa fa-leaf'); ?>" <?php if($rs['fontcolor']): ?>style="color:<?php echo $rs['fontcolor']; ?>"<?php endif; ?>></em>
				<em class="titles"><?php echo $rs['name']; ?></em>
			</a>
        </div>
        <?php if($rs['sons']): ?>
        <!-- 二级菜单开始 -->
        <div class="icons"></div>
        <div class="menu2" style="display: none;">
			<ul>
			<?php if(is_array($rs['sons']) || $rs['sons'] instanceof \think\Collection || $rs['sons'] instanceof \think\Paginator): $i = 0; $__LIST__ = $rs['sons'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vs): $mod = ($i % 2 );++$i;if(val('hidelay')&&val('hide2icon'))$vs['style']=''; ?>
				<li class="icon_li">
					<a href="<?php echo $vs['url']; ?>" class="<?php echo !empty($vs['style'])?'haveimg':'noimg'; ?>">
						<?php if($vs['style']): ?><em class="iconimg <?php echo $vs['style']; ?>"></em><?php endif; ?>
						<em class="titles"><?php echo $vs['name']; ?></em>
					</a>
				</li>
			<?php endforeach; endif; else: echo "" ;endif; ?>
			</ul>
			<div class="tiggle"></div>
			<div class="innertiggle"></div>
        </div> 
        <!-- 二级菜单结束 -->
        <?php endif; if(strstr($rs['url'],'member.php/member/msg/index')&&modules_config('tongji')): ?>
		<!-- 角标开始 -->
        <dd  style="color:#fff;background:orange;position:absolute;right:5px;top:2px;font-size:10px;line-height:12px;padding:2px 3px;border-radius:4px;display:none;" class="tongji-num">0</dd>
        <?php elseif(strstr($rs['url'],'member.php/member/index')): ?>
        <dd  style="color:#fff;background:red;position:absolute;right:5px;top:2px;font-size:10px;line-height:12px;padding:2px 3px;border-radius:4px;display:none;" class="msg-num">0</dd>
        <!-- 角标结束 -->
		<?php endif; ?>
    </div>
	<?php echo $rs['script']; ?>
	<!-- 一级菜单结束 -->
	<?php endforeach; endif; else: echo "" ;endif; ?>    
</div>



<!--弹窗开始-->
<?php if(!val('hidelay')): ?>
<div class="footer_tc_dc"></div>
<div class="footer_tc_show">
  <div class="shuoming">
    <?php echo val('title1')?:'随时随地交流，掌控身边动态！'; ?>
  </div>
  <?php if(defined('LABEL_DEBUG')): ?><!--QB <!--wap_ruzhu	text	-->
  <div class="ruzhu" onclick="window.location.href='<?php echo val('link1')?:murl('qun/content/add',['mid'=>1]); ?>'">
    <p><i class="<?php echo val('iconqun')?:'fa fa-asl-interpreting'; ?>"></i></p>
    <p>
        <span><?php echo val('title2')?:'创建属于自己的圈子！'; ?></span>
        <span><?php echo val('title3')?:'发现生活乐圈，绽放精彩人生'; ?></span>
    </p>
    <p><i class="fa fa-fw fa-angle-right"></i></p>
  </div>
   QB--><?php endif; $wap_ruzhu = fun('label@run_label','wap_ruzhu',['val'=>'','conf'=>'','list'=>'rs','systype'=>'text','tpl'=>'','ifdata'=>1,'dirname'=>__FILE__,'rows'=>'5','class'=>'','order'=>'','by'=>'','where'=>'','whereor'=>'','sql'=>"",'js'=>'','cache_time'=>'0'  ]); ?>
  <div class="fabu_title"><span>快捷菜单</span></div>
  <ul class="fabu_cd">
      <?php $_result=array_values($menudb)[count($menudb)>4?2:1]['sons'];if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$rs): $mod = ($i % 2 );++$i;?>
	  <li>
	    <a href="<?php echo !empty($rs['sons'])?'javascript:;':$rs['url']; ?>">
		  <span><i class="<?php echo (isset($rs['style']) && ($rs['style'] !== '')?$rs['style']:'fa fa-leaf'); ?>"></i></span>
		  <em><?php echo $rs['name']; ?></em>
		</a>
	  </li>
	  <?php endforeach; endif; else: echo "" ;endif; ?>
  </ul>
 <?php if(!val('hidedownapp')): ?>
  <div onclick="window.location.href='<?php echo val('appurl')?tempdir(val('appurl')):'/app.apk'; ?>'" class="footer_app_xz">
	 <?php echo val('title4')?:'点击下载APP，可享受更多权益'; ?>
  </div>
  <?php endif; ?>
  <div class="guanbi"><i class="si si-close"></i></div>
</div>
<script type="text/javascript">
var center_obj = $(".footmenu_warp .centers");
if( center_obj.length>0 && center_obj.find(".icons").length>0 ){
	center_obj.click(function(){
		if($(".footer_tc_dc").is(':hidden')){
			$('.footer_tc_show,.footer_tc_dc').fadeIn();
		}else{
			$('.footer_tc_show,.footer_tc_dc').fadeOut();
		}
	}).find(".menu2").remove();
}

$(document).ready(function(){
    $('.footer_tc_show .guanbi,.footer_tc_dc').on('click', function(){
        $('.footer_tc_show,.footer_tc_dc').fadeOut();
    });

	setTimeout(function(){	//仿原生APP, 获取API需要时间的
		if(typeof(window.inApk)=='object' || typeof(api)=='object'){	//在APP中就隐藏下载APP的提示
			 $('.footer_app_xz').hide();
		}
	},1000);
});

</script>
<?php endif; ?>
<!--弹窗结束-->

<script type="text/javascript">
if(window.self!=window.top){
	$(".footmenu_warp").hide();	//在框架里，就不要显示底部菜单
}
$(".footmenu_warp .menu1").click(function() {
    if ($(this).hasClass("showSons")) {
        $(this).children(".menu2").hide(); //当前菜单下的二级菜单隐藏
        $(".footmenu_warp .menu1").removeClass("showSons"); //同一级的菜单项
    } else {
        $(".footmenu_warp .menu1").removeClass("showSons"); //移除所有的样式
        $(this).addClass("showSons"); //给当前菜单添加特定样式
        $(".footmenu_warp .menu1").children(".menu2").slideUp("fast"); //隐藏所有的二级菜单
        $(this).children(".menu2").slideDown("fast"); //展示当前的二级菜单
    }
});
</script>

<?php if($webdb['weixin_type']==3&&$userdb['weixin_api']!=''): ?>
<script type="text/javascript">
if($.cookie('mp_gz_remind')!='no'&&"<?php echo $userdb['uid']; ?>"!=''){
$.get("<?php echo purl('weixin/check/ifgz',[],'index'); ?>",function(res){
	if(res.code==1){
		layer.open({
			type: 1
			,offset: 'rb'
			,anim:2
			,title:'亲!欢迎关注公众号'
			,area:['280px','280px']
			,content: '<div style="padding: 10px;text-align:center;"><span style="font-size:12px;">你还没有关注公众号,请关注可以享受更多权益!</span><br><img src="<?php echo tempdir($webdb['mp_code_img']); ?>" style="width:180px;height:180px;"></div>'        
			,shade: 0 //不显示遮罩 
			,cancel: function(index, layero){
				$.cookie('mp_gz_remind', 'no', { expires: 60, path: '/' });   //60分钟提醒一次用户关注公众号
			}
		});
	}
});
}
</script>
<?php endif; ?><!--若没有关注微信公众号,就做个提醒-->
<!--下面是钩子插件,做风格的时候尽量加上,方便扩展-->
<?php echo hook_listen('layout_body_foot',$userdb,$webdb,true); ?>
</body>
</html>